/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans.validation;

/**
 *
 * @author m.steiner.1
 */
public class Login {

    private String username;
    private String password;
    private String type;
    
    public Login(){
        
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String doLogin() {

        
        
        if (type.equals("usl")) {
            return "usl-login";
        } else if (type.equals("medic")) {
            return "medic-login";
        } else if (type.equals("patient")) {
            return "patient-login";                
        } else {
            return null;
        }
    }
}
